package com.fenghongzhang.day003mvp.model;

import com.fenghongzhang.day003mvp.contract.FoodContract;
import com.fenghongzhang.mvp_lib.model.BaseModel;

import okhttp3.Callback;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.logging.HttpLoggingInterceptor;

public class FoodModel extends BaseModel implements FoodContract.IFoodModel {

    //数据请求的功能
    @Override
    public void getFoodDate(Callback callback) {
        OkHttpClient build = new OkHttpClient.Builder()
                .build();

        Request build1 = new Request.Builder().get().url("http://www.qubaobei.com/ios/cf/dish_list.php?stage_id=1&limit=1&page=1").build();
        build.newCall(build1).enqueue(callback);
    }

    @Override
    public void destroy() {
        super.destroy();

    }
}
